<h1>Dashboard</h1>

<!-- Stats Widgets -->
<div class="row-fluid row-merge border-top">
<?php
$sql_user = mysql_query("SELECT count(user_id) as jml_user FROM user");
$jml_user = mysql_fetch_array($sql_user);

$sql_koleksi = mysql_query("SELECT count(idkoleksi) as jml_koleksi FROM koleksi");
$jml_koleksi = mysql_fetch_array($sql_koleksi);
?>
	<div class="span3">
		<div class="innerAll padding-bottom-none-phone">
			<a href="<?php echo $base; ?>index/user/view" class="widget-stats widget-stats-gray widget-stats-4">
				<span class="txt">User</span>
				<span class="count"><?php echo $jml_user['jml_user']; ?></span>
				<span class="glyphicons user"><i></i></span>
				<div class="clearfix"></div>
				<i class="icon-play-circle"></i>
			</a>
		</div>
	</div>
	<div class="span3">
		<div class="innerAll padding-bottom-none-phone">
			<a href="<?php echo $base; ?>index/koleksi/view" class="widget-stats widget-stats-primary widget-stats-4">
				<span class="txt">Koleksi</span>
				<span class="count"><?php echo $jml_koleksi['jml_koleksi']; ?></span>
				<span class="glyphicons sheriffs_star"><i></i></span>
				<div class="clearfix"></div>
				<i class="icon-play-circle"></i>
			</a>
		</div>
	</div>
</div>
<!-- // Stats Widgets END -->

<div class="heading-buttons">
	<h2 class="heading pull-left"><i class="icon-bar-chart icon-fixed-width text-primary"></i> Trafik Pengunjung</h2>
	<div class="buttons">
		<a href="google_analytics.html?lang=en&amp;layout_type=fluid&amp;menu_position=menu-left&amp;style=style-default-menus-dark&amp;sidebar_type=collapsible" class="btn btn-primary">Google Analytics API</a>
	</div>
	<div class="clearfix"></div>
</div>

<div class="innerLR innerT">

	<!-- Website Traffic Chart -->
	<div class="widget widget-body-gray">
		<div class="widget-body">
			<div id="chart_simple" style="height: 253px;"></div>
		</div>
	</div>
	<!-- // Website Traffic Chart END -->
	
	<!-- Charts Helper Demo Script -->
	<script src="common/theme/scripts/demo/charts.helper.js?1374506511"></script>
	
</div>